#include <stdio.h>
int Average(int *l);
int * ReadScore(int *l);

void main(){
	int l[40];
	ReadScore(l);
	printf("%d",Average(l));	
}

int * ReadScore(int *l){
	int *p=l;
	while ((scanf("%d",l)) && *l++ != -1){
		;
	}
	return p;
}

int Average(int *l){
	int sum=0,*p=l,i=0;
	while (*p!=-1){
		sum+=*p++;
		i++;
	}
	sum/=i;
	i=0;
	while (--p!=l){
		if (*p>sum){
			i++;
		}
	}
	return i;
}
